package com.shangyueshang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shangyueshang.model.SysRoleMenu;
import org.apache.ibatis.annotations.Delete;
import org.springframework.stereotype.Component;

/**
 * @author JokeyFeng
 * @date: 2022/1/3
 * @project: shangyueshang
 * @package: com.shangyueshang.mapper
 * @comment:
 */
@Component
public interface SysRoleMenuMapper extends BaseMapper<SysRoleMenu> {

    /**
     * 根据角色ID删除
     *
     * @param roleId
     * @return
     */
    @Delete("delete from sys_role_menu where role_id  = #{roleId}")
    int deleteByRole(Long roleId);

}
